package org.micode.common.domain.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class UpdateVO<T> {

    @NotNull
    private T updateObj;

    @NotNull
    private T example;

    public UpdateVO() {

    }

    public UpdateVO(T example, T updateObj) {
        this();
        this.example = example;
        this.updateObj = updateObj;
    }

}
